package eu.connect.jmswrapper;

import java.io.*;

public class TargetHost {
	public static String url;
	
	static {
		String thisDir = System.getProperty("user.dir");
        String separator = System.getProperty("file.separator");
		url = "localhost";
		try {
			FileReader fr = new FileReader(thisDir + separator + "conf" + separator + "wrapper.properties");
			BufferedReader br = new BufferedReader(fr);
			url = br.readLine();
			br.close();
			fr.close();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			url = "localhost";
		}
	}
	
	public static void setHost(String s) {
		url = s;
	}
	
	public static String getHost() {
		return url;
	}

}
